{% set class_toc = get_autosummary_toc() %}

{% if pagename.startswith("reference") %}
<nav id="bd-toc-nav">
    <ul class="visible nav section-nav flex-column">
    <li class="toc-h1 nav-item toc-entry" style="font-weight: 400; margin-left: 1rem; margin-bottom: 5px;">
        {{class_toc.pretitle}}{{ class_toc.title }}
    </li>
    {% for item in class_toc.menu_items %}
        <li class="toc-h2 nav-item toc-entry">
            <a class="reference internal nav-link" href="{{ item.link }}">{{ item.title }}</a>
        </li>
    {% endfor %}
    </ul>
</nav>
{%- endif %}
